﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlServerCe;

namespace HomeDMSDomain
{
    public class DBConverter
    {
        public static void ConvertDBToFileVersion(SqlCeConnection conn)
        {
            SqlCeCommand cmd = new SqlCeCommand("ALTER TABLE Pages add [File] image, [Thumbnail] image,[file_type] int;", conn);
            if (conn.State == System.Data.ConnectionState.Closed)
            {
                conn.Open();
            }

            cmd.ExecuteNonQuery();
        }
    }
}
